import { defineConfig } from 'umi';
import devConfig from './config.dev';
import prodConfig from './config.prod';

const env = process.env;
const envConfig = env.mode === 'prod' ? prodConfig : devConfig;

export default defineConfig({
  alias: {
    '@': '/src',
    '@packages': '/packages',
  },
  cssLoader: {
    localsConvention: 'camelCase',
  },
  ...envConfig,
});
